package day09;

/*
 * Author: JacksonCoder
 * FileName: LocalDateTimeExample
 * Version: 1.0.0
 * Date: 2025/4/15
 */

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LocalDateTimeExample {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        String formatted = now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
        System.out.println("当前时间：" + formatted);
    }
}
